# -*- coding: utf-8 -*-
"""
Created on Mon Aug 31 07:47:35 2020

@author: cr26
"""
import dimod
import neal
N=6
print(" bqm = dimod.BinaryQuadraticModel({", end=' ')
for i in range(N):
    print("\'x"+str(i)+"\': 0.0, ",end = '')
print("}, {", end=' ')
for m1 in range(0,N):
    for n1 in range(0,N):
        for m2 in range(0,N):
            for n2 in range(0,N):
                if(m1 != m2 or n1 != n2):
                    print("(\'x"+str(m1*N+n1)+"\',"+"\'x"+str(m2*N+n2)+"\'): " + str(Jmn_int(m1,n1,m2,n2))+", ",end = '')
print("}, \'SPIN')")

 bqm = neal.SimulatedAnnealingSampler.sample({ 'x0': 0.0, 'x1': 0.0, 'x2': 0.0, 'x3': 0.0, 'x4': 0.0, 'x5': 0.0, }, { ('x0','x1'): 2.2982174102518306e-16, ('x0','x2'): 1.287509049673055e-16, ('x0','x3'): -3.8397843585160223e-16, ('x0','x4'): 2.1547344184001764e-16, ('x0','x5'): 6.73690274641518e-16, ('x0','x6'): 1.1499449278826247e-16, ('x0','x7'): -1.6099652744644918e-16, ('x0','x8'): -4.692237884254885e-17, ('x0','x9'): -8.712854504855228e-16, ('x0','x10'): -2.200083236180952e-16, ('x0','x11'): 6.223698308562025e-16, ('x0','x12'): 7.27860964922572e-17, ('x0','x13'): 3.504286899223325e-17, ('x0','x14'): 2.6327652721029985e-16, ('x0','x15'): 4.597342449758344e-16, ('x0','x16'): -1.2856900993110286e-15, ('x0','x17'): 3.8982915339802936e-16, ('x0','x18'): 1.8221886920878332e-16, ('x0','x19'): -4.926304444604729e-17, ('x0','x20'): 3.194245129790801e-16, ('x0','x21'): -3.732406118922183e-16, ('x0','x22'): 6.48116599160726e-16, ('x0','x23'): -6.551089850864967e-16, ('x0','x24'): 7.922224199863218e-17, ('x0','x25'): 1.6179096150643616e-16, ('x0','x26'): -3.036067868211681e-16, ('x0','x27'): 5.01579948656809e-16, ('x0','x28'): 7.14016539044816e-16, ('x0','x29'): 1.2114907374729513e-15, ('x0','x30'): 2.466145517929521e-16, ('x0','x31'): 2.991979347211581e-16, ('x0','x32'): 1.7821234682937496e-16, ('x0','x33'): -8.7637441086809e-18, ('x0','x34'): 7.978636375464395e-16, ('x0','x35'): -9.745633828775238e-16, ('x1','x0'): 2.2982174102518306e-16, ('x1','x2'): 2.2982174102518306e-16, ('x1','x3'): 1.287509049673055e-16, ('x1','x4'): -3.8397843585160223e-16, ('x1','x5'): 2.1547344184001764e-16, ('x1','x6'): 1.3187822743321418e-16, ('x1','x7'): 1.1499449278826247e-16, ('x1','x8'): -1.6099652744644918e-16, ('x1','x9'): -4.692237884254885e-17, ('x1','x10'): -8.712854504855228e-16, ('x1','x11'): -2.200083236180952e-16, ('x1','x12'): 1.0986942981253501e-16, ('x1','x13'): 7.27860964922572e-17, ('x1','x14'): 3.504286899223325e-17, ('x1','x15'): 2.6327652721029985e-16, ('x1','x16'): 4.597342449758344e-16, ('x1','x17'): -1.2856900993110286e-15, ('x1','x18'): 2.7640064312512884e-17, ('x1','x19'): 1.8221886920878332e-16, ('x1','x20'): -4.926304444604729e-17, ('x1','x21'): 3.194245129790801e-16, ('x1','x22'): -3.732406118922183e-16, ('x1','x23'): 6.48116599160726e-16, ('x1','x24'): 6.024616069817561e-17, ('x1','x25'): 7.922224199863218e-17, ('x1','x26'): 1.6179096150643616e-16, ('x1','x27'): -3.036067868211681e-16, ('x1','x28'): 5.01579948656809e-16, ('x1','x29'): 7.14016539044816e-16, ('x1','x30'): 9.450266679872513e-17, ('x1','x31'): 2.466145517929521e-16, ('x1','x32'): 2.991979347211581e-16, ('x1','x33'): 1.7821234682937496e-16, ('x1','x34'): -8.7637441086809e-18, ('x1','x35'): 7.978636375464395e-16, ('x2','x0'): 1.287509049673055e-16, ('x2','x1'): 2.2982174102518306e-16, ('x2','x3'): 2.2982174102518306e-16, ('x2','x4'): 1.287509049673055e-16, ('x2','x5'): -3.8397843585160223e-16, ('x2','x6'): 6.000794855941198e-17, ('x2','x7'): 1.3187822743321418e-16, ('x2','x8'): 1.1499449278826247e-16, ('x2','x9'): -1.6099652744644918e-16, ('x2','x10'): -4.692237884254885e-17, ('x2','x11'): -8.712854504855228e-16, ('x2','x12'): 1.6431149712766567e-16, ('x2','x13'): 1.0986942981253501e-16, ('x2','x14'): 7.27860964922572e-17, ('x2','x15'): 3.504286899223325e-17, ('x2','x16'): 2.6327652721029985e-16, ('x2','x17'): 4.597342449758344e-16, ('x2','x18'): 6.304328652472393e-17, ('x2','x19'): 2.7640064312512884e-17, ('x2','x20'): 1.8221886920878332e-16, ('x2','x21'): -4.926304444604729e-17, ('x2','x22'): 3.194245129790801e-16, ('x2','x23'): -3.732406118922183e-16, ('x2','x24'): 9.26882242235355e-17, ('x2','x25'): 6.024616069817561e-17, ('x2','x26'): 7.922224199863218e-17, ('x2','x27'): 1.6179096150643616e-16, ('x2','x28'): -3.036067868211681e-16, ('x2','x29'): 5.01579948656809e-16, ('x2','x30'): 1.2764949891640398e-16, ('x2','x31'): 9.450266679872513e-17, ('x2','x32'): 2.466145517929521e-16, ('x2','x33'): 2.991979347211581e-16, ('x2','x34'): 1.7821234682937496e-16, ('x2','x35'): -8.7637441086809e-18, ('x3','x0'): -3.8397843585160223e-16, ('x3','x1'): 1.287509049673055e-16, ('x3','x2'): 2.2982174102518306e-16, ('x3','x4'): 2.2982174102518306e-16, ('x3','x5'): 1.287509049673055e-16, ('x3','x6'): -1.3635837783152612e-16, ('x3','x7'): 6.000794855941198e-17, ('x3','x8'): 1.3187822743321418e-16, ('x3','x9'): 1.1499449278826247e-16, ('x3','x10'): -1.6099652744644918e-16, ('x3','x11'): -4.692237884254885e-17, ('x3','x12'): 1.0969616262142754e-16, ('x3','x13'): 1.6431149712766567e-16, ('x3','x14'): 1.0986942981253501e-16, ('x3','x15'): 7.27860964922572e-17, ('x3','x16'): 3.504286899223325e-17, ('x3','x17'): 2.6327652721029985e-16, ('x3','x18'): 5.137809198793707e-18, ('x3','x19'): 6.304328652472393e-17, ('x3','x20'): 2.7640064312512884e-17, ('x3','x21'): 1.8221886920878332e-16, ('x3','x22'): -4.926304444604729e-17, ('x3','x23'): 3.194245129790801e-16, ('x3','x24'): 1.95154507648156e-16, ('x3','x25'): 9.26882242235355e-17, ('x3','x26'): 6.024616069817561e-17, ('x3','x27'): 7.922224199863218e-17, ('x3','x28'): 1.6179096150643616e-16, ('x3','x29'): -3.036067868211681e-16, ('x3','x30'): 1.5231786364772198e-16, ('x3','x31'): 1.2764949891640398e-16, ('x3','x32'): 9.450266679872513e-17, ('x3','x33'): 2.466145517929521e-16, ('x3','x34'): 2.991979347211581e-16, ('x3','x35'): 1.7821234682937496e-16, ('x4','x0'): 2.1547344184001764e-16, ('x4','x1'): -3.8397843585160223e-16, ('x4','x2'): 1.287509049673055e-16, ('x4','x3'): 2.2982174102518306e-16, ('x4','x5'): 2.2982174102518306e-16, ('x4','x6'): 2.7961936860701286e-16, ('x4','x7'): -1.3635837783152612e-16, ('x4','x8'): 6.000794855941198e-17, ('x4','x9'): 1.3187822743321418e-16, ('x4','x10'): 1.1499449278826247e-16, ('x4','x11'): -1.6099652744644918e-16, ('x4','x12'): 1.862053946545509e-16, ('x4','x13'): 1.0969616262142754e-16, ('x4','x14'): 1.6431149712766567e-16, ('x4','x15'): 1.0986942981253501e-16, ('x4','x16'): 7.27860964922572e-17, ('x4','x17'): 3.504286899223325e-17, ('x4','x18'): 2.8612012738548587e-16, ('x4','x19'): 5.137809198793707e-18, ('x4','x20'): 6.304328652472393e-17, ('x4','x21'): 2.7640064312512884e-17, ('x4','x22'): 1.8221886920878332e-16, ('x4','x23'): -4.926304444604729e-17, ('x4','x24'): 2.9580490060045504e-16, ('x4','x25'): 1.95154507648156e-16, ('x4','x26'): 9.26882242235355e-17, ('x4','x27'): 6.024616069817561e-17, ('x4','x28'): 7.922224199863218e-17, ('x4','x29'): 1.6179096150643616e-16, ('x4','x30'): -6.399290757353928e-17, ('x4','x31'): 1.5231786364772198e-16, ('x4','x32'): 1.2764949891640398e-16, ('x4','x33'): 9.450266679872513e-17, ('x4','x34'): 2.466145517929521e-16, ('x4','x35'): 2.991979347211581e-16, ('x5','x0'): 6.73690274641518e-16, ('x5','x1'): 2.1547344184001764e-16, ('x5','x2'): -3.8397843585160223e-16, ('x5','x3'): 1.287509049673055e-16, ('x5','x4'): 2.2982174102518306e-16, ('x5','x6'): 3.5530419716680163e-16, ('x5','x7'): 2.7961936860701286e-16, ('x5','x8'): -1.3635837783152612e-16, ('x5','x9'): 6.000794855941198e-17, ('x5','x10'): 1.3187822743321418e-16, ('x5','x11'): 1.1499449278826247e-16, ('x5','x12'): 1.664941743865022e-16, ('x5','x13'): 1.862053946545509e-16, ('x5','x14'): 1.0969616262142754e-16, ('x5','x15'): 1.6431149712766567e-16, ('x5','x16'): 1.0986942981253501e-16, ('x5','x17'): 7.27860964922572e-17, ('x5','x18'): 2.2766279146275557e-16, ('x5','x19'): 2.8612012738548587e-16, ('x5','x20'): 5.137809198793707e-18, ('x5','x21'): 6.304328652472393e-17, ('x5','x22'): 2.7640064312512884e-17, ('x5','x23'): 1.8221886920878332e-16, ('x5','x24'): 4.205815525040028e-18, ('x5','x25'): 2.9580490060045504e-16, ('x5','x26'): 1.95154507648156e-16, ('x5','x27'): 9.26882242235355e-17, ('x5','x28'): 6.024616069817561e-17, ('x5','x29'): 7.922224199863218e-17, ('x5','x30'): 3.4034943151355473e-16, ('x5','x31'): -6.399290757353928e-17, ('x5','x32'): 1.5231786364772198e-16, ('x5','x33'): 1.2764949891640398e-16, ('x5','x34'): 9.450266679872513e-17, ('x5','x35'): 2.466145517929521e-16, ('x6','x0'): 1.1499449278826247e-16, ('x6','x1'): 1.3187822743321418e-16, ('x6','x2'): 6.000794855941198e-17, ('x6','x3'): -1.3635837783152612e-16, ('x6','x4'): 2.7961936860701286e-16, ('x6','x5'): 3.5530419716680163e-16, ('x6','x7'): 2.2982174102518306e-16, ('x6','x8'): 1.287509049673055e-16, ('x6','x9'): -3.8397843585160223e-16, ('x6','x10'): 2.1547344184001764e-16, ('x6','x11'): 6.73690274641518e-16, ('x6','x12'): 1.1499449278826247e-16, ('x6','x13'): -1.6099652744644918e-16, ('x6','x14'): -4.692237884254885e-17, ('x6','x15'): -8.712854504855228e-16, ('x6','x16'): -2.200083236180952e-16, ('x6','x17'): 6.223698308562025e-16, ('x6','x18'): 7.27860964922572e-17, ('x6','x19'): 3.504286899223325e-17, ('x6','x20'): 2.6327652721029985e-16, ('x6','x21'): 4.597342449758344e-16, ('x6','x22'): -1.2856900993110286e-15, ('x6','x23'): 3.8982915339802936e-16, ('x6','x24'): 1.8221886920878332e-16, ('x6','x25'): -4.926304444604729e-17, ('x6','x26'): 3.194245129790801e-16, ('x6','x27'): -3.732406118922183e-16, ('x6','x28'): 6.48116599160726e-16, ('x6','x29'): -6.551089850864967e-16, ('x6','x30'): 7.922224199863218e-17, ('x6','x31'): 1.6179096150643616e-16, ('x6','x32'): -3.036067868211681e-16, ('x6','x33'): 5.01579948656809e-16, ('x6','x34'): 7.14016539044816e-16, ('x6','x35'): 1.2114907374729513e-15, ('x7','x0'): -1.6099652744644918e-16, ('x7','x1'): 1.1499449278826247e-16, ('x7','x2'): 1.3187822743321418e-16, ('x7','x3'): 6.000794855941198e-17, ('x7','x4'): -1.3635837783152612e-16, ('x7','x5'): 2.7961936860701286e-16, ('x7','x6'): 2.2982174102518306e-16, ('x7','x8'): 2.2982174102518306e-16, ('x7','x9'): 1.287509049673055e-16, ('x7','x10'): -3.8397843585160223e-16, ('x7','x11'): 2.1547344184001764e-16, ('x7','x12'): 1.3187822743321418e-16, ('x7','x13'): 1.1499449278826247e-16, ('x7','x14'): -1.6099652744644918e-16, ('x7','x15'): -4.692237884254885e-17, ('x7','x16'): -8.712854504855228e-16, ('x7','x17'): -2.200083236180952e-16, ('x7','x18'): 1.0986942981253501e-16, ('x7','x19'): 7.27860964922572e-17, ('x7','x20'): 3.504286899223325e-17, ('x7','x21'): 2.6327652721029985e-16, ('x7','x22'): 4.597342449758344e-16, ('x7','x23'): -1.2856900993110286e-15, ('x7','x24'): 2.7640064312512884e-17, ('x7','x25'): 1.8221886920878332e-16, ('x7','x26'): -4.926304444604729e-17, ('x7','x27'): 3.194245129790801e-16, ('x7','x28'): -3.732406118922183e-16, ('x7','x29'): 6.48116599160726e-16, ('x7','x30'): 6.024616069817561e-17, ('x7','x31'): 7.922224199863218e-17, ('x7','x32'): 1.6179096150643616e-16, ('x7','x33'): -3.036067868211681e-16, ('x7','x34'): 5.01579948656809e-16, ('x7','x35'): 7.14016539044816e-16, ('x8','x0'): -4.692237884254885e-17, ('x8','x1'): -1.6099652744644918e-16, ('x8','x2'): 1.1499449278826247e-16, ('x8','x3'): 1.3187822743321418e-16, ('x8','x4'): 6.000794855941198e-17, ('x8','x5'): -1.3635837783152612e-16, ('x8','x6'): 1.287509049673055e-16, ('x8','x7'): 2.2982174102518306e-16, ('x8','x9'): 2.2982174102518306e-16, ('x8','x10'): 1.287509049673055e-16, ('x8','x11'): -3.8397843585160223e-16, ('x8','x12'): 6.000794855941198e-17, ('x8','x13'): 1.3187822743321418e-16, ('x8','x14'): 1.1499449278826247e-16, ('x8','x15'): -1.6099652744644918e-16, ('x8','x16'): -4.692237884254885e-17, ('x8','x17'): -8.712854504855228e-16, ('x8','x18'): 1.6431149712766567e-16, ('x8','x19'): 1.0986942981253501e-16, ('x8','x20'): 7.27860964922572e-17, ('x8','x21'): 3.504286899223325e-17, ('x8','x22'): 2.6327652721029985e-16, ('x8','x23'): 4.597342449758344e-16, ('x8','x24'): 6.304328652472393e-17, ('x8','x25'): 2.7640064312512884e-17, ('x8','x26'): 1.8221886920878332e-16, ('x8','x27'): -4.926304444604729e-17, ('x8','x28'): 3.194245129790801e-16, ('x8','x29'): -3.732406118922183e-16, ('x8','x30'): 9.26882242235355e-17, ('x8','x31'): 6.024616069817561e-17, ('x8','x32'): 7.922224199863218e-17, ('x8','x33'): 1.6179096150643616e-16, ('x8','x34'): -3.036067868211681e-16, ('x8','x35'): 5.01579948656809e-16, ('x9','x0'): -8.712854504855228e-16, ('x9','x1'): -4.692237884254885e-17, ('x9','x2'): -1.6099652744644918e-16, ('x9','x3'): 1.1499449278826247e-16, ('x9','x4'): 1.3187822743321418e-16, ('x9','x5'): 6.000794855941198e-17, ('x9','x6'): -3.8397843585160223e-16, ('x9','x7'): 1.287509049673055e-16, ('x9','x8'): 2.2982174102518306e-16, ('x9','x10'): 2.2982174102518306e-16, ('x9','x11'): 1.287509049673055e-16, ('x9','x12'): -1.3635837783152612e-16, ('x9','x13'): 6.000794855941198e-17, ('x9','x14'): 1.3187822743321418e-16, ('x9','x15'): 1.1499449278826247e-16, ('x9','x16'): -1.6099652744644918e-16, ('x9','x17'): -4.692237884254885e-17, ('x9','x18'): 1.0969616262142754e-16, ('x9','x19'): 1.6431149712766567e-16, ('x9','x20'): 1.0986942981253501e-16, ('x9','x21'): 7.27860964922572e-17, ('x9','x22'): 3.504286899223325e-17, ('x9','x23'): 2.6327652721029985e-16, ('x9','x24'): 5.137809198793707e-18, ('x9','x25'): 6.304328652472393e-17, ('x9','x26'): 2.7640064312512884e-17, ('x9','x27'): 1.8221886920878332e-16, ('x9','x28'): -4.926304444604729e-17, ('x9','x29'): 3.194245129790801e-16, ('x9','x30'): 1.95154507648156e-16, ('x9','x31'): 9.26882242235355e-17, ('x9','x32'): 6.024616069817561e-17, ('x9','x33'): 7.922224199863218e-17, ('x9','x34'): 1.6179096150643616e-16, ('x9','x35'): -3.036067868211681e-16, ('x10','x0'): -2.200083236180952e-16, ('x10','x1'): -8.712854504855228e-16, ('x10','x2'): -4.692237884254885e-17, ('x10','x3'): -1.6099652744644918e-16, ('x10','x4'): 1.1499449278826247e-16, ('x10','x5'): 1.3187822743321418e-16, ('x10','x6'): 2.1547344184001764e-16, ('x10','x7'): -3.8397843585160223e-16, ('x10','x8'): 1.287509049673055e-16, ('x10','x9'): 2.2982174102518306e-16, ('x10','x11'): 2.2982174102518306e-16, ('x10','x12'): 2.7961936860701286e-16, ('x10','x13'): -1.3635837783152612e-16, ('x10','x14'): 6.000794855941198e-17, ('x10','x15'): 1.3187822743321418e-16, ('x10','x16'): 1.1499449278826247e-16, ('x10','x17'): -1.6099652744644918e-16, ('x10','x18'): 1.862053946545509e-16, ('x10','x19'): 1.0969616262142754e-16, ('x10','x20'): 1.6431149712766567e-16, ('x10','x21'): 1.0986942981253501e-16, ('x10','x22'): 7.27860964922572e-17, ('x10','x23'): 3.504286899223325e-17, ('x10','x24'): 2.8612012738548587e-16, ('x10','x25'): 5.137809198793707e-18, ('x10','x26'): 6.304328652472393e-17, ('x10','x27'): 2.7640064312512884e-17, ('x10','x28'): 1.8221886920878332e-16, ('x10','x29'): -4.926304444604729e-17, ('x10','x30'): 2.9580490060045504e-16, ('x10','x31'): 1.95154507648156e-16, ('x10','x32'): 9.26882242235355e-17, ('x10','x33'): 6.024616069817561e-17, ('x10','x34'): 7.922224199863218e-17, ('x10','x35'): 1.6179096150643616e-16, ('x11','x0'): 6.223698308562025e-16, ('x11','x1'): -2.200083236180952e-16, ('x11','x2'): -8.712854504855228e-16, ('x11','x3'): -4.692237884254885e-17, ('x11','x4'): -1.6099652744644918e-16, ('x11','x5'): 1.1499449278826247e-16, ('x11','x6'): 6.73690274641518e-16, ('x11','x7'): 2.1547344184001764e-16, ('x11','x8'): -3.8397843585160223e-16, ('x11','x9'): 1.287509049673055e-16, ('x11','x10'): 2.2982174102518306e-16, ('x11','x12'): 3.5530419716680163e-16, ('x11','x13'): 2.7961936860701286e-16, ('x11','x14'): -1.3635837783152612e-16, ('x11','x15'): 6.000794855941198e-17, ('x11','x16'): 1.3187822743321418e-16, ('x11','x17'): 1.1499449278826247e-16, ('x11','x18'): 1.664941743865022e-16, ('x11','x19'): 1.862053946545509e-16, ('x11','x20'): 1.0969616262142754e-16, ('x11','x21'): 1.6431149712766567e-16, ('x11','x22'): 1.0986942981253501e-16, ('x11','x23'): 7.27860964922572e-17, ('x11','x24'): 2.2766279146275557e-16, ('x11','x25'): 2.8612012738548587e-16, ('x11','x26'): 5.137809198793707e-18, ('x11','x27'): 6.304328652472393e-17, ('x11','x28'): 2.7640064312512884e-17, ('x11','x29'): 1.8221886920878332e-16, ('x11','x30'): 4.205815525040028e-18, ('x11','x31'): 2.9580490060045504e-16, ('x11','x32'): 1.95154507648156e-16, ('x11','x33'): 9.26882242235355e-17, ('x11','x34'): 6.024616069817561e-17, ('x11','x35'): 7.922224199863218e-17, ('x12','x0'): 7.27860964922572e-17, ('x12','x1'): 1.0986942981253501e-16, ('x12','x2'): 1.6431149712766567e-16, ('x12','x3'): 1.0969616262142754e-16, ('x12','x4'): 1.862053946545509e-16, ('x12','x5'): 1.664941743865022e-16, ('x12','x6'): 1.1499449278826247e-16, ('x12','x7'): 1.3187822743321418e-16, ('x12','x8'): 6.000794855941198e-17, ('x12','x9'): -1.3635837783152612e-16, ('x12','x10'): 2.7961936860701286e-16, ('x12','x11'): 3.5530419716680163e-16, ('x12','x13'): 2.2982174102518306e-16, ('x12','x14'): 1.287509049673055e-16, ('x12','x15'): -3.8397843585160223e-16, ('x12','x16'): 2.1547344184001764e-16, ('x12','x17'): 6.73690274641518e-16, ('x12','x18'): 1.1499449278826247e-16, ('x12','x19'): -1.6099652744644918e-16, ('x12','x20'): -4.692237884254885e-17, ('x12','x21'): -8.712854504855228e-16, ('x12','x22'): -2.200083236180952e-16, ('x12','x23'): 6.223698308562025e-16, ('x12','x24'): 7.27860964922572e-17, ('x12','x25'): 3.504286899223325e-17, ('x12','x26'): 2.6327652721029985e-16, ('x12','x27'): 4.597342449758344e-16, ('x12','x28'): -1.2856900993110286e-15, ('x12','x29'): 3.8982915339802936e-16, ('x12','x30'): 1.8221886920878332e-16, ('x12','x31'): -4.926304444604729e-17, ('x12','x32'): 3.194245129790801e-16, ('x12','x33'): -3.732406118922183e-16, ('x12','x34'): 6.48116599160726e-16, ('x12','x35'): -6.551089850864967e-16, ('x13','x0'): 3.504286899223325e-17, ('x13','x1'): 7.27860964922572e-17, ('x13','x2'): 1.0986942981253501e-16, ('x13','x3'): 1.6431149712766567e-16, ('x13','x4'): 1.0969616262142754e-16, ('x13','x5'): 1.862053946545509e-16, ('x13','x6'): -1.6099652744644918e-16, ('x13','x7'): 1.1499449278826247e-16, ('x13','x8'): 1.3187822743321418e-16, ('x13','x9'): 6.000794855941198e-17, ('x13','x10'): -1.3635837783152612e-16, ('x13','x11'): 2.7961936860701286e-16, ('x13','x12'): 2.2982174102518306e-16, ('x13','x14'): 2.2982174102518306e-16, ('x13','x15'): 1.287509049673055e-16, ('x13','x16'): -3.8397843585160223e-16, ('x13','x17'): 2.1547344184001764e-16, ('x13','x18'): 1.3187822743321418e-16, ('x13','x19'): 1.1499449278826247e-16, ('x13','x20'): -1.6099652744644918e-16, ('x13','x21'): -4.692237884254885e-17, ('x13','x22'): -8.712854504855228e-16, ('x13','x23'): -2.200083236180952e-16, ('x13','x24'): 1.0986942981253501e-16, ('x13','x25'): 7.27860964922572e-17, ('x13','x26'): 3.504286899223325e-17, ('x13','x27'): 2.6327652721029985e-16, ('x13','x28'): 4.597342449758344e-16, ('x13','x29'): -1.2856900993110286e-15, ('x13','x30'): 2.7640064312512884e-17, ('x13','x31'): 1.8221886920878332e-16, ('x13','x32'): -4.926304444604729e-17, ('x13','x33'): 3.194245129790801e-16, ('x13','x34'): -3.732406118922183e-16, ('x13','x35'): 6.48116599160726e-16, ('x14','x0'): 2.6327652721029985e-16, ('x14','x1'): 3.504286899223325e-17, ('x14','x2'): 7.27860964922572e-17, ('x14','x3'): 1.0986942981253501e-16, ('x14','x4'): 1.6431149712766567e-16, ('x14','x5'): 1.0969616262142754e-16, ('x14','x6'): -4.692237884254885e-17, ('x14','x7'): -1.6099652744644918e-16, ('x14','x8'): 1.1499449278826247e-16, ('x14','x9'): 1.3187822743321418e-16, ('x14','x10'): 6.000794855941198e-17, ('x14','x11'): -1.3635837783152612e-16, ('x14','x12'): 1.287509049673055e-16, ('x14','x13'): 2.2982174102518306e-16, ('x14','x15'): 2.2982174102518306e-16, ('x14','x16'): 1.287509049673055e-16, ('x14','x17'): -3.8397843585160223e-16, ('x14','x18'): 6.000794855941198e-17, ('x14','x19'): 1.3187822743321418e-16, ('x14','x20'): 1.1499449278826247e-16, ('x14','x21'): -1.6099652744644918e-16, ('x14','x22'): -4.692237884254885e-17, ('x14','x23'): -8.712854504855228e-16, ('x14','x24'): 1.6431149712766567e-16, ('x14','x25'): 1.0986942981253501e-16, ('x14','x26'): 7.27860964922572e-17, ('x14','x27'): 3.504286899223325e-17, ('x14','x28'): 2.6327652721029985e-16, ('x14','x29'): 4.597342449758344e-16, ('x14','x30'): 6.304328652472393e-17, ('x14','x31'): 2.7640064312512884e-17, ('x14','x32'): 1.8221886920878332e-16, ('x14','x33'): -4.926304444604729e-17, ('x14','x34'): 3.194245129790801e-16, ('x14','x35'): -3.732406118922183e-16, ('x15','x0'): 4.597342449758344e-16, ('x15','x1'): 2.6327652721029985e-16, ('x15','x2'): 3.504286899223325e-17, ('x15','x3'): 7.27860964922572e-17, ('x15','x4'): 1.0986942981253501e-16, ('x15','x5'): 1.6431149712766567e-16, ('x15','x6'): -8.712854504855228e-16, ('x15','x7'): -4.692237884254885e-17, ('x15','x8'): -1.6099652744644918e-16, ('x15','x9'): 1.1499449278826247e-16, ('x15','x10'): 1.3187822743321418e-16, ('x15','x11'): 6.000794855941198e-17, ('x15','x12'): -3.8397843585160223e-16, ('x15','x13'): 1.287509049673055e-16, ('x15','x14'): 2.2982174102518306e-16, ('x15','x16'): 2.2982174102518306e-16, ('x15','x17'): 1.287509049673055e-16, ('x15','x18'): -1.3635837783152612e-16, ('x15','x19'): 6.000794855941198e-17, ('x15','x20'): 1.3187822743321418e-16, ('x15','x21'): 1.1499449278826247e-16, ('x15','x22'): -1.6099652744644918e-16, ('x15','x23'): -4.692237884254885e-17, ('x15','x24'): 1.0969616262142754e-16, ('x15','x25'): 1.6431149712766567e-16, ('x15','x26'): 1.0986942981253501e-16, ('x15','x27'): 7.27860964922572e-17, ('x15','x28'): 3.504286899223325e-17, ('x15','x29'): 2.6327652721029985e-16, ('x15','x30'): 5.137809198793707e-18, ('x15','x31'): 6.304328652472393e-17, ('x15','x32'): 2.7640064312512884e-17, ('x15','x33'): 1.8221886920878332e-16, ('x15','x34'): -4.926304444604729e-17, ('x15','x35'): 3.194245129790801e-16, ('x16','x0'): -1.2856900993110286e-15, ('x16','x1'): 4.597342449758344e-16, ('x16','x2'): 2.6327652721029985e-16, ('x16','x3'): 3.504286899223325e-17, ('x16','x4'): 7.27860964922572e-17, ('x16','x5'): 1.0986942981253501e-16, ('x16','x6'): -2.200083236180952e-16, ('x16','x7'): -8.712854504855228e-16, ('x16','x8'): -4.692237884254885e-17, ('x16','x9'): -1.6099652744644918e-16, ('x16','x10'): 1.1499449278826247e-16, ('x16','x11'): 1.3187822743321418e-16, ('x16','x12'): 2.1547344184001764e-16, ('x16','x13'): -3.8397843585160223e-16, ('x16','x14'): 1.287509049673055e-16, ('x16','x15'): 2.2982174102518306e-16, ('x16','x17'): 2.2982174102518306e-16, ('x16','x18'): 2.7961936860701286e-16, ('x16','x19'): -1.3635837783152612e-16, ('x16','x20'): 6.000794855941198e-17, ('x16','x21'): 1.3187822743321418e-16, ('x16','x22'): 1.1499449278826247e-16, ('x16','x23'): -1.6099652744644918e-16, ('x16','x24'): 1.862053946545509e-16, ('x16','x25'): 1.0969616262142754e-16, ('x16','x26'): 1.6431149712766567e-16, ('x16','x27'): 1.0986942981253501e-16, ('x16','x28'): 7.27860964922572e-17, ('x16','x29'): 3.504286899223325e-17, ('x16','x30'): 2.8612012738548587e-16, ('x16','x31'): 5.137809198793707e-18, ('x16','x32'): 6.304328652472393e-17, ('x16','x33'): 2.7640064312512884e-17, ('x16','x34'): 1.8221886920878332e-16, ('x16','x35'): -4.926304444604729e-17, ('x17','x0'): 3.8982915339802936e-16, ('x17','x1'): -1.2856900993110286e-15, ('x17','x2'): 4.597342449758344e-16, ('x17','x3'): 2.6327652721029985e-16, ('x17','x4'): 3.504286899223325e-17, ('x17','x5'): 7.27860964922572e-17, ('x17','x6'): 6.223698308562025e-16, ('x17','x7'): -2.200083236180952e-16, ('x17','x8'): -8.712854504855228e-16, ('x17','x9'): -4.692237884254885e-17, ('x17','x10'): -1.6099652744644918e-16, ('x17','x11'): 1.1499449278826247e-16, ('x17','x12'): 6.73690274641518e-16, ('x17','x13'): 2.1547344184001764e-16, ('x17','x14'): -3.8397843585160223e-16, ('x17','x15'): 1.287509049673055e-16, ('x17','x16'): 2.2982174102518306e-16, ('x17','x18'): 3.5530419716680163e-16, ('x17','x19'): 2.7961936860701286e-16, ('x17','x20'): -1.3635837783152612e-16, ('x17','x21'): 6.000794855941198e-17, ('x17','x22'): 1.3187822743321418e-16, ('x17','x23'): 1.1499449278826247e-16, ('x17','x24'): 1.664941743865022e-16, ('x17','x25'): 1.862053946545509e-16, ('x17','x26'): 1.0969616262142754e-16, ('x17','x27'): 1.6431149712766567e-16, ('x17','x28'): 1.0986942981253501e-16, ('x17','x29'): 7.27860964922572e-17, ('x17','x30'): 2.2766279146275557e-16, ('x17','x31'): 2.8612012738548587e-16, ('x17','x32'): 5.137809198793707e-18, ('x17','x33'): 6.304328652472393e-17, ('x17','x34'): 2.7640064312512884e-17, ('x17','x35'): 1.8221886920878332e-16, ('x18','x0'): 1.8221886920878332e-16, ('x18','x1'): 2.7640064312512884e-17, ('x18','x2'): 6.304328652472393e-17, ('x18','x3'): 5.137809198793707e-18, ('x18','x4'): 2.8612012738548587e-16, ('x18','x5'): 2.2766279146275557e-16, ('x18','x6'): 7.27860964922572e-17, ('x18','x7'): 1.0986942981253501e-16, ('x18','x8'): 1.6431149712766567e-16, ('x18','x9'): 1.0969616262142754e-16, ('x18','x10'): 1.862053946545509e-16, ('x18','x11'): 1.664941743865022e-16, ('x18','x12'): 1.1499449278826247e-16, ('x18','x13'): 1.3187822743321418e-16, ('x18','x14'): 6.000794855941198e-17, ('x18','x15'): -1.3635837783152612e-16, ('x18','x16'): 2.7961936860701286e-16, ('x18','x17'): 3.5530419716680163e-16, ('x18','x19'): 2.2982174102518306e-16, ('x18','x20'): 1.287509049673055e-16, ('x18','x21'): -3.8397843585160223e-16, ('x18','x22'): 2.1547344184001764e-16, ('x18','x23'): 6.73690274641518e-16, ('x18','x24'): 1.1499449278826247e-16, ('x18','x25'): -1.6099652744644918e-16, ('x18','x26'): -4.692237884254885e-17, ('x18','x27'): -8.712854504855228e-16, ('x18','x28'): -2.200083236180952e-16, ('x18','x29'): 6.223698308562025e-16, ('x18','x30'): 7.27860964922572e-17, ('x18','x31'): 3.504286899223325e-17, ('x18','x32'): 2.6327652721029985e-16, ('x18','x33'): 4.597342449758344e-16, ('x18','x34'): -1.2856900993110286e-15, ('x18','x35'): 3.8982915339802936e-16, ('x19','x0'): -4.926304444604729e-17, ('x19','x1'): 1.8221886920878332e-16, ('x19','x2'): 2.7640064312512884e-17, ('x19','x3'): 6.304328652472393e-17, ('x19','x4'): 5.137809198793707e-18, ('x19','x5'): 2.8612012738548587e-16, ('x19','x6'): 3.504286899223325e-17, ('x19','x7'): 7.27860964922572e-17, ('x19','x8'): 1.0986942981253501e-16, ('x19','x9'): 1.6431149712766567e-16, ('x19','x10'): 1.0969616262142754e-16, ('x19','x11'): 1.862053946545509e-16, ('x19','x12'): -1.6099652744644918e-16, ('x19','x13'): 1.1499449278826247e-16, ('x19','x14'): 1.3187822743321418e-16, ('x19','x15'): 6.000794855941198e-17, ('x19','x16'): -1.3635837783152612e-16, ('x19','x17'): 2.7961936860701286e-16, ('x19','x18'): 2.2982174102518306e-16, ('x19','x20'): 2.2982174102518306e-16, ('x19','x21'): 1.287509049673055e-16, ('x19','x22'): -3.8397843585160223e-16, ('x19','x23'): 2.1547344184001764e-16, ('x19','x24'): 1.3187822743321418e-16, ('x19','x25'): 1.1499449278826247e-16, ('x19','x26'): -1.6099652744644918e-16, ('x19','x27'): -4.692237884254885e-17, ('x19','x28'): -8.712854504855228e-16, ('x19','x29'): -2.200083236180952e-16, ('x19','x30'): 1.0986942981253501e-16, ('x19','x31'): 7.27860964922572e-17, ('x19','x32'): 3.504286899223325e-17, ('x19','x33'): 2.6327652721029985e-16, ('x19','x34'): 4.597342449758344e-16, ('x19','x35'): -1.2856900993110286e-15, ('x20','x0'): 3.194245129790801e-16, ('x20','x1'): -4.926304444604729e-17, ('x20','x2'): 1.8221886920878332e-16, ('x20','x3'): 2.7640064312512884e-17, ('x20','x4'): 6.304328652472393e-17, ('x20','x5'): 5.137809198793707e-18, ('x20','x6'): 2.6327652721029985e-16, ('x20','x7'): 3.504286899223325e-17, ('x20','x8'): 7.27860964922572e-17, ('x20','x9'): 1.0986942981253501e-16, ('x20','x10'): 1.6431149712766567e-16, ('x20','x11'): 1.0969616262142754e-16, ('x20','x12'): -4.692237884254885e-17, ('x20','x13'): -1.6099652744644918e-16, ('x20','x14'): 1.1499449278826247e-16, ('x20','x15'): 1.3187822743321418e-16, ('x20','x16'): 6.000794855941198e-17, ('x20','x17'): -1.3635837783152612e-16, ('x20','x18'): 1.287509049673055e-16, ('x20','x19'): 2.2982174102518306e-16, ('x20','x21'): 2.2982174102518306e-16, ('x20','x22'): 1.287509049673055e-16, ('x20','x23'): -3.8397843585160223e-16, ('x20','x24'): 6.000794855941198e-17, ('x20','x25'): 1.3187822743321418e-16, ('x20','x26'): 1.1499449278826247e-16, ('x20','x27'): -1.6099652744644918e-16, ('x20','x28'): -4.692237884254885e-17, ('x20','x29'): -8.712854504855228e-16, ('x20','x30'): 1.6431149712766567e-16, ('x20','x31'): 1.0986942981253501e-16, ('x20','x32'): 7.27860964922572e-17, ('x20','x33'): 3.504286899223325e-17, ('x20','x34'): 2.6327652721029985e-16, ('x20','x35'): 4.597342449758344e-16, ('x21','x0'): -3.732406118922183e-16, ('x21','x1'): 3.194245129790801e-16, ('x21','x2'): -4.926304444604729e-17, ('x21','x3'): 1.8221886920878332e-16, ('x21','x4'): 2.7640064312512884e-17, ('x21','x5'): 6.304328652472393e-17, ('x21','x6'): 4.597342449758344e-16, ('x21','x7'): 2.6327652721029985e-16, ('x21','x8'): 3.504286899223325e-17, ('x21','x9'): 7.27860964922572e-17, ('x21','x10'): 1.0986942981253501e-16, ('x21','x11'): 1.6431149712766567e-16, ('x21','x12'): -8.712854504855228e-16, ('x21','x13'): -4.692237884254885e-17, ('x21','x14'): -1.6099652744644918e-16, ('x21','x15'): 1.1499449278826247e-16, ('x21','x16'): 1.3187822743321418e-16, ('x21','x17'): 6.000794855941198e-17, ('x21','x18'): -3.8397843585160223e-16, ('x21','x19'): 1.287509049673055e-16, ('x21','x20'): 2.2982174102518306e-16, ('x21','x22'): 2.2982174102518306e-16, ('x21','x23'): 1.287509049673055e-16, ('x21','x24'): -1.3635837783152612e-16, ('x21','x25'): 6.000794855941198e-17, ('x21','x26'): 1.3187822743321418e-16, ('x21','x27'): 1.1499449278826247e-16, ('x21','x28'): -1.6099652744644918e-16, ('x21','x29'): -4.692237884254885e-17, ('x21','x30'): 1.0969616262142754e-16, ('x21','x31'): 1.6431149712766567e-16, ('x21','x32'): 1.0986942981253501e-16, ('x21','x33'): 7.27860964922572e-17, ('x21','x34'): 3.504286899223325e-17, ('x21','x35'): 2.6327652721029985e-16, ('x22','x0'): 6.48116599160726e-16, ('x22','x1'): -3.732406118922183e-16, ('x22','x2'): 3.194245129790801e-16, ('x22','x3'): -4.926304444604729e-17, ('x22','x4'): 1.8221886920878332e-16, ('x22','x5'): 2.7640064312512884e-17, ('x22','x6'): -1.2856900993110286e-15, ('x22','x7'): 4.597342449758344e-16, ('x22','x8'): 2.6327652721029985e-16, ('x22','x9'): 3.504286899223325e-17, ('x22','x10'): 7.27860964922572e-17, ('x22','x11'): 1.0986942981253501e-16, ('x22','x12'): -2.200083236180952e-16, ('x22','x13'): -8.712854504855228e-16, ('x22','x14'): -4.692237884254885e-17, ('x22','x15'): -1.6099652744644918e-16, ('x22','x16'): 1.1499449278826247e-16, ('x22','x17'): 1.3187822743321418e-16, ('x22','x18'): 2.1547344184001764e-16, ('x22','x19'): -3.8397843585160223e-16, ('x22','x20'): 1.287509049673055e-16, ('x22','x21'): 2.2982174102518306e-16, ('x22','x23'): 2.2982174102518306e-16, ('x22','x24'): 2.7961936860701286e-16, ('x22','x25'): -1.3635837783152612e-16, ('x22','x26'): 6.000794855941198e-17, ('x22','x27'): 1.3187822743321418e-16, ('x22','x28'): 1.1499449278826247e-16, ('x22','x29'): -1.6099652744644918e-16, ('x22','x30'): 1.862053946545509e-16, ('x22','x31'): 1.0969616262142754e-16, ('x22','x32'): 1.6431149712766567e-16, ('x22','x33'): 1.0986942981253501e-16, ('x22','x34'): 7.27860964922572e-17, ('x22','x35'): 3.504286899223325e-17, ('x23','x0'): -6.551089850864967e-16, ('x23','x1'): 6.48116599160726e-16, ('x23','x2'): -3.732406118922183e-16, ('x23','x3'): 3.194245129790801e-16, ('x23','x4'): -4.926304444604729e-17, ('x23','x5'): 1.8221886920878332e-16, ('x23','x6'): 3.8982915339802936e-16, ('x23','x7'): -1.2856900993110286e-15, ('x23','x8'): 4.597342449758344e-16, ('x23','x9'): 2.6327652721029985e-16, ('x23','x10'): 3.504286899223325e-17, ('x23','x11'): 7.27860964922572e-17, ('x23','x12'): 6.223698308562025e-16, ('x23','x13'): -2.200083236180952e-16, ('x23','x14'): -8.712854504855228e-16, ('x23','x15'): -4.692237884254885e-17, ('x23','x16'): -1.6099652744644918e-16, ('x23','x17'): 1.1499449278826247e-16, ('x23','x18'): 6.73690274641518e-16, ('x23','x19'): 2.1547344184001764e-16, ('x23','x20'): -3.8397843585160223e-16, ('x23','x21'): 1.287509049673055e-16, ('x23','x22'): 2.2982174102518306e-16, ('x23','x24'): 3.5530419716680163e-16, ('x23','x25'): 2.7961936860701286e-16, ('x23','x26'): -1.3635837783152612e-16, ('x23','x27'): 6.000794855941198e-17, ('x23','x28'): 1.3187822743321418e-16, ('x23','x29'): 1.1499449278826247e-16, ('x23','x30'): 1.664941743865022e-16, ('x23','x31'): 1.862053946545509e-16, ('x23','x32'): 1.0969616262142754e-16, ('x23','x33'): 1.6431149712766567e-16, ('x23','x34'): 1.0986942981253501e-16, ('x23','x35'): 7.27860964922572e-17, ('x24','x0'): 7.922224199863218e-17, ('x24','x1'): 6.024616069817561e-17, ('x24','x2'): 9.26882242235355e-17, ('x24','x3'): 1.95154507648156e-16, ('x24','x4'): 2.9580490060045504e-16, ('x24','x5'): 4.205815525040028e-18, ('x24','x6'): 1.8221886920878332e-16, ('x24','x7'): 2.7640064312512884e-17, ('x24','x8'): 6.304328652472393e-17, ('x24','x9'): 5.137809198793707e-18, ('x24','x10'): 2.8612012738548587e-16, ('x24','x11'): 2.2766279146275557e-16, ('x24','x12'): 7.27860964922572e-17, ('x24','x13'): 1.0986942981253501e-16, ('x24','x14'): 1.6431149712766567e-16, ('x24','x15'): 1.0969616262142754e-16, ('x24','x16'): 1.862053946545509e-16, ('x24','x17'): 1.664941743865022e-16, ('x24','x18'): 1.1499449278826247e-16, ('x24','x19'): 1.3187822743321418e-16, ('x24','x20'): 6.000794855941198e-17, ('x24','x21'): -1.3635837783152612e-16, ('x24','x22'): 2.7961936860701286e-16, ('x24','x23'): 3.5530419716680163e-16, ('x24','x25'): 2.2982174102518306e-16, ('x24','x26'): 1.287509049673055e-16, ('x24','x27'): -3.8397843585160223e-16, ('x24','x28'): 2.1547344184001764e-16, ('x24','x29'): 6.73690274641518e-16, ('x24','x30'): 1.1499449278826247e-16, ('x24','x31'): -1.6099652744644918e-16, ('x24','x32'): -4.692237884254885e-17, ('x24','x33'): -8.712854504855228e-16, ('x24','x34'): -2.200083236180952e-16, ('x24','x35'): 6.223698308562025e-16, ('x25','x0'): 1.6179096150643616e-16, ('x25','x1'): 7.922224199863218e-17, ('x25','x2'): 6.024616069817561e-17, ('x25','x3'): 9.26882242235355e-17, ('x25','x4'): 1.95154507648156e-16, ('x25','x5'): 2.9580490060045504e-16, ('x25','x6'): -4.926304444604729e-17, ('x25','x7'): 1.8221886920878332e-16, ('x25','x8'): 2.7640064312512884e-17, ('x25','x9'): 6.304328652472393e-17, ('x25','x10'): 5.137809198793707e-18, ('x25','x11'): 2.8612012738548587e-16, ('x25','x12'): 3.504286899223325e-17, ('x25','x13'): 7.27860964922572e-17, ('x25','x14'): 1.0986942981253501e-16, ('x25','x15'): 1.6431149712766567e-16, ('x25','x16'): 1.0969616262142754e-16, ('x25','x17'): 1.862053946545509e-16, ('x25','x18'): -1.6099652744644918e-16, ('x25','x19'): 1.1499449278826247e-16, ('x25','x20'): 1.3187822743321418e-16, ('x25','x21'): 6.000794855941198e-17, ('x25','x22'): -1.3635837783152612e-16, ('x25','x23'): 2.7961936860701286e-16, ('x25','x24'): 2.2982174102518306e-16, ('x25','x26'): 2.2982174102518306e-16, ('x25','x27'): 1.287509049673055e-16, ('x25','x28'): -3.8397843585160223e-16, ('x25','x29'): 2.1547344184001764e-16, ('x25','x30'): 1.3187822743321418e-16, ('x25','x31'): 1.1499449278826247e-16, ('x25','x32'): -1.6099652744644918e-16, ('x25','x33'): -4.692237884254885e-17, ('x25','x34'): -8.712854504855228e-16, ('x25','x35'): -2.200083236180952e-16, ('x26','x0'): -3.036067868211681e-16, ('x26','x1'): 1.6179096150643616e-16, ('x26','x2'): 7.922224199863218e-17, ('x26','x3'): 6.024616069817561e-17, ('x26','x4'): 9.26882242235355e-17, ('x26','x5'): 1.95154507648156e-16, ('x26','x6'): 3.194245129790801e-16, ('x26','x7'): -4.926304444604729e-17, ('x26','x8'): 1.8221886920878332e-16, ('x26','x9'): 2.7640064312512884e-17, ('x26','x10'): 6.304328652472393e-17, ('x26','x11'): 5.137809198793707e-18, ('x26','x12'): 2.6327652721029985e-16, ('x26','x13'): 3.504286899223325e-17, ('x26','x14'): 7.27860964922572e-17, ('x26','x15'): 1.0986942981253501e-16, ('x26','x16'): 1.6431149712766567e-16, ('x26','x17'): 1.0969616262142754e-16, ('x26','x18'): -4.692237884254885e-17, ('x26','x19'): -1.6099652744644918e-16, ('x26','x20'): 1.1499449278826247e-16, ('x26','x21'): 1.3187822743321418e-16, ('x26','x22'): 6.000794855941198e-17, ('x26','x23'): -1.3635837783152612e-16, ('x26','x24'): 1.287509049673055e-16, ('x26','x25'): 2.2982174102518306e-16, ('x26','x27'): 2.2982174102518306e-16, ('x26','x28'): 1.287509049673055e-16, ('x26','x29'): -3.8397843585160223e-16, ('x26','x30'): 6.000794855941198e-17, ('x26','x31'): 1.3187822743321418e-16, ('x26','x32'): 1.1499449278826247e-16, ('x26','x33'): -1.6099652744644918e-16, ('x26','x34'): -4.692237884254885e-17, ('x26','x35'): -8.712854504855228e-16, ('x27','x0'): 5.01579948656809e-16, ('x27','x1'): -3.036067868211681e-16, ('x27','x2'): 1.6179096150643616e-16, ('x27','x3'): 7.922224199863218e-17, ('x27','x4'): 6.024616069817561e-17, ('x27','x5'): 9.26882242235355e-17, ('x27','x6'): -3.732406118922183e-16, ('x27','x7'): 3.194245129790801e-16, ('x27','x8'): -4.926304444604729e-17, ('x27','x9'): 1.8221886920878332e-16, ('x27','x10'): 2.7640064312512884e-17, ('x27','x11'): 6.304328652472393e-17, ('x27','x12'): 4.597342449758344e-16, ('x27','x13'): 2.6327652721029985e-16, ('x27','x14'): 3.504286899223325e-17, ('x27','x15'): 7.27860964922572e-17, ('x27','x16'): 1.0986942981253501e-16, ('x27','x17'): 1.6431149712766567e-16, ('x27','x18'): -8.712854504855228e-16, ('x27','x19'): -4.692237884254885e-17, ('x27','x20'): -1.6099652744644918e-16, ('x27','x21'): 1.1499449278826247e-16, ('x27','x22'): 1.3187822743321418e-16, ('x27','x23'): 6.000794855941198e-17, ('x27','x24'): -3.8397843585160223e-16, ('x27','x25'): 1.287509049673055e-16, ('x27','x26'): 2.2982174102518306e-16, ('x27','x28'): 2.2982174102518306e-16, ('x27','x29'): 1.287509049673055e-16, ('x27','x30'): -1.3635837783152612e-16, ('x27','x31'): 6.000794855941198e-17, ('x27','x32'): 1.3187822743321418e-16, ('x27','x33'): 1.1499449278826247e-16, ('x27','x34'): -1.6099652744644918e-16, ('x27','x35'): -4.692237884254885e-17, ('x28','x0'): 7.14016539044816e-16, ('x28','x1'): 5.01579948656809e-16, ('x28','x2'): -3.036067868211681e-16, ('x28','x3'): 1.6179096150643616e-16, ('x28','x4'): 7.922224199863218e-17, ('x28','x5'): 6.024616069817561e-17, ('x28','x6'): 6.48116599160726e-16, ('x28','x7'): -3.732406118922183e-16, ('x28','x8'): 3.194245129790801e-16, ('x28','x9'): -4.926304444604729e-17, ('x28','x10'): 1.8221886920878332e-16, ('x28','x11'): 2.7640064312512884e-17, ('x28','x12'): -1.2856900993110286e-15, ('x28','x13'): 4.597342449758344e-16, ('x28','x14'): 2.6327652721029985e-16, ('x28','x15'): 3.504286899223325e-17, ('x28','x16'): 7.27860964922572e-17, ('x28','x17'): 1.0986942981253501e-16, ('x28','x18'): -2.200083236180952e-16, ('x28','x19'): -8.712854504855228e-16, ('x28','x20'): -4.692237884254885e-17, ('x28','x21'): -1.6099652744644918e-16, ('x28','x22'): 1.1499449278826247e-16, ('x28','x23'): 1.3187822743321418e-16, ('x28','x24'): 2.1547344184001764e-16, ('x28','x25'): -3.8397843585160223e-16, ('x28','x26'): 1.287509049673055e-16, ('x28','x27'): 2.2982174102518306e-16, ('x28','x29'): 2.2982174102518306e-16, ('x28','x30'): 2.7961936860701286e-16, ('x28','x31'): -1.3635837783152612e-16, ('x28','x32'): 6.000794855941198e-17, ('x28','x33'): 1.3187822743321418e-16, ('x28','x34'): 1.1499449278826247e-16, ('x28','x35'): -1.6099652744644918e-16, ('x29','x0'): 1.2114907374729513e-15, ('x29','x1'): 7.14016539044816e-16, ('x29','x2'): 5.01579948656809e-16, ('x29','x3'): -3.036067868211681e-16, ('x29','x4'): 1.6179096150643616e-16, ('x29','x5'): 7.922224199863218e-17, ('x29','x6'): -6.551089850864967e-16, ('x29','x7'): 6.48116599160726e-16, ('x29','x8'): -3.732406118922183e-16, ('x29','x9'): 3.194245129790801e-16, ('x29','x10'): -4.926304444604729e-17, ('x29','x11'): 1.8221886920878332e-16, ('x29','x12'): 3.8982915339802936e-16, ('x29','x13'): -1.2856900993110286e-15, ('x29','x14'): 4.597342449758344e-16, ('x29','x15'): 2.6327652721029985e-16, ('x29','x16'): 3.504286899223325e-17, ('x29','x17'): 7.27860964922572e-17, ('x29','x18'): 6.223698308562025e-16, ('x29','x19'): -2.200083236180952e-16, ('x29','x20'): -8.712854504855228e-16, ('x29','x21'): -4.692237884254885e-17, ('x29','x22'): -1.6099652744644918e-16, ('x29','x23'): 1.1499449278826247e-16, ('x29','x24'): 6.73690274641518e-16, ('x29','x25'): 2.1547344184001764e-16, ('x29','x26'): -3.8397843585160223e-16, ('x29','x27'): 1.287509049673055e-16, ('x29','x28'): 2.2982174102518306e-16, ('x29','x30'): 3.5530419716680163e-16, ('x29','x31'): 2.7961936860701286e-16, ('x29','x32'): -1.3635837783152612e-16, ('x29','x33'): 6.000794855941198e-17, ('x29','x34'): 1.3187822743321418e-16, ('x29','x35'): 1.1499449278826247e-16, ('x30','x0'): 2.466145517929521e-16, ('x30','x1'): 9.450266679872513e-17, ('x30','x2'): 1.2764949891640398e-16, ('x30','x3'): 1.5231786364772198e-16, ('x30','x4'): -6.399290757353928e-17, ('x30','x5'): 3.4034943151355473e-16, ('x30','x6'): 7.922224199863218e-17, ('x30','x7'): 6.024616069817561e-17, ('x30','x8'): 9.26882242235355e-17, ('x30','x9'): 1.95154507648156e-16, ('x30','x10'): 2.9580490060045504e-16, ('x30','x11'): 4.205815525040028e-18, ('x30','x12'): 1.8221886920878332e-16, ('x30','x13'): 2.7640064312512884e-17, ('x30','x14'): 6.304328652472393e-17, ('x30','x15'): 5.137809198793707e-18, ('x30','x16'): 2.8612012738548587e-16, ('x30','x17'): 2.2766279146275557e-16, ('x30','x18'): 7.27860964922572e-17, ('x30','x19'): 1.0986942981253501e-16, ('x30','x20'): 1.6431149712766567e-16, ('x30','x21'): 1.0969616262142754e-16, ('x30','x22'): 1.862053946545509e-16, ('x30','x23'): 1.664941743865022e-16, ('x30','x24'): 1.1499449278826247e-16, ('x30','x25'): 1.3187822743321418e-16, ('x30','x26'): 6.000794855941198e-17, ('x30','x27'): -1.3635837783152612e-16, ('x30','x28'): 2.7961936860701286e-16, ('x30','x29'): 3.5530419716680163e-16, ('x30','x31'): 2.2982174102518306e-16, ('x30','x32'): 1.287509049673055e-16, ('x30','x33'): -3.8397843585160223e-16, ('x30','x34'): 2.1547344184001764e-16, ('x30','x35'): 6.73690274641518e-16, ('x31','x0'): 2.991979347211581e-16, ('x31','x1'): 2.466145517929521e-16, ('x31','x2'): 9.450266679872513e-17, ('x31','x3'): 1.2764949891640398e-16, ('x31','x4'): 1.5231786364772198e-16, ('x31','x5'): -6.399290757353928e-17, ('x31','x6'): 1.6179096150643616e-16, ('x31','x7'): 7.922224199863218e-17, ('x31','x8'): 6.024616069817561e-17, ('x31','x9'): 9.26882242235355e-17, ('x31','x10'): 1.95154507648156e-16, ('x31','x11'): 2.9580490060045504e-16, ('x31','x12'): -4.926304444604729e-17, ('x31','x13'): 1.8221886920878332e-16, ('x31','x14'): 2.7640064312512884e-17, ('x31','x15'): 6.304328652472393e-17, ('x31','x16'): 5.137809198793707e-18, ('x31','x17'): 2.8612012738548587e-16, ('x31','x18'): 3.504286899223325e-17, ('x31','x19'): 7.27860964922572e-17, ('x31','x20'): 1.0986942981253501e-16, ('x31','x21'): 1.6431149712766567e-16, ('x31','x22'): 1.0969616262142754e-16, ('x31','x23'): 1.862053946545509e-16, ('x31','x24'): -1.6099652744644918e-16, ('x31','x25'): 1.1499449278826247e-16, ('x31','x26'): 1.3187822743321418e-16, ('x31','x27'): 6.000794855941198e-17, ('x31','x28'): -1.3635837783152612e-16, ('x31','x29'): 2.7961936860701286e-16, ('x31','x30'): 2.2982174102518306e-16, ('x31','x32'): 2.2982174102518306e-16, ('x31','x33'): 1.287509049673055e-16, ('x31','x34'): -3.8397843585160223e-16, ('x31','x35'): 2.1547344184001764e-16, ('x32','x0'): 1.7821234682937496e-16, ('x32','x1'): 2.991979347211581e-16, ('x32','x2'): 2.466145517929521e-16, ('x32','x3'): 9.450266679872513e-17, ('x32','x4'): 1.2764949891640398e-16, ('x32','x5'): 1.5231786364772198e-16, ('x32','x6'): -3.036067868211681e-16, ('x32','x7'): 1.6179096150643616e-16, ('x32','x8'): 7.922224199863218e-17, ('x32','x9'): 6.024616069817561e-17, ('x32','x10'): 9.26882242235355e-17, ('x32','x11'): 1.95154507648156e-16, ('x32','x12'): 3.194245129790801e-16, ('x32','x13'): -4.926304444604729e-17, ('x32','x14'): 1.8221886920878332e-16, ('x32','x15'): 2.7640064312512884e-17, ('x32','x16'): 6.304328652472393e-17, ('x32','x17'): 5.137809198793707e-18, ('x32','x18'): 2.6327652721029985e-16, ('x32','x19'): 3.504286899223325e-17, ('x32','x20'): 7.27860964922572e-17, ('x32','x21'): 1.0986942981253501e-16, ('x32','x22'): 1.6431149712766567e-16, ('x32','x23'): 1.0969616262142754e-16, ('x32','x24'): -4.692237884254885e-17, ('x32','x25'): -1.6099652744644918e-16, ('x32','x26'): 1.1499449278826247e-16, ('x32','x27'): 1.3187822743321418e-16, ('x32','x28'): 6.000794855941198e-17, ('x32','x29'): -1.3635837783152612e-16, ('x32','x30'): 1.287509049673055e-16, ('x32','x31'): 2.2982174102518306e-16, ('x32','x33'): 2.2982174102518306e-16, ('x32','x34'): 1.287509049673055e-16, ('x32','x35'): -3.8397843585160223e-16, ('x33','x0'): -8.7637441086809e-18, ('x33','x1'): 1.7821234682937496e-16, ('x33','x2'): 2.991979347211581e-16, ('x33','x3'): 2.466145517929521e-16, ('x33','x4'): 9.450266679872513e-17, ('x33','x5'): 1.2764949891640398e-16, ('x33','x6'): 5.01579948656809e-16, ('x33','x7'): -3.036067868211681e-16, ('x33','x8'): 1.6179096150643616e-16, ('x33','x9'): 7.922224199863218e-17, ('x33','x10'): 6.024616069817561e-17, ('x33','x11'): 9.26882242235355e-17, ('x33','x12'): -3.732406118922183e-16, ('x33','x13'): 3.194245129790801e-16, ('x33','x14'): -4.926304444604729e-17, ('x33','x15'): 1.8221886920878332e-16, ('x33','x16'): 2.7640064312512884e-17, ('x33','x17'): 6.304328652472393e-17, ('x33','x18'): 4.597342449758344e-16, ('x33','x19'): 2.6327652721029985e-16, ('x33','x20'): 3.504286899223325e-17, ('x33','x21'): 7.27860964922572e-17, ('x33','x22'): 1.0986942981253501e-16, ('x33','x23'): 1.6431149712766567e-16, ('x33','x24'): -8.712854504855228e-16, ('x33','x25'): -4.692237884254885e-17, ('x33','x26'): -1.6099652744644918e-16, ('x33','x27'): 1.1499449278826247e-16, ('x33','x28'): 1.3187822743321418e-16, ('x33','x29'): 6.000794855941198e-17, ('x33','x30'): -3.8397843585160223e-16, ('x33','x31'): 1.287509049673055e-16, ('x33','x32'): 2.2982174102518306e-16, ('x33','x34'): 2.2982174102518306e-16, ('x33','x35'): 1.287509049673055e-16, ('x34','x0'): 7.978636375464395e-16, ('x34','x1'): -8.7637441086809e-18, ('x34','x2'): 1.7821234682937496e-16, ('x34','x3'): 2.991979347211581e-16, ('x34','x4'): 2.466145517929521e-16, ('x34','x5'): 9.450266679872513e-17, ('x34','x6'): 7.14016539044816e-16, ('x34','x7'): 5.01579948656809e-16, ('x34','x8'): -3.036067868211681e-16, ('x34','x9'): 1.6179096150643616e-16, ('x34','x10'): 7.922224199863218e-17, ('x34','x11'): 6.024616069817561e-17, ('x34','x12'): 6.48116599160726e-16, ('x34','x13'): -3.732406118922183e-16, ('x34','x14'): 3.194245129790801e-16, ('x34','x15'): -4.926304444604729e-17, ('x34','x16'): 1.8221886920878332e-16, ('x34','x17'): 2.7640064312512884e-17, ('x34','x18'): -1.2856900993110286e-15, ('x34','x19'): 4.597342449758344e-16, ('x34','x20'): 2.6327652721029985e-16, ('x34','x21'): 3.504286899223325e-17, ('x34','x22'): 7.27860964922572e-17, ('x34','x23'): 1.0986942981253501e-16, ('x34','x24'): -2.200083236180952e-16, ('x34','x25'): -8.712854504855228e-16, ('x34','x26'): -4.692237884254885e-17, ('x34','x27'): -1.6099652744644918e-16, ('x34','x28'): 1.1499449278826247e-16, ('x34','x29'): 1.3187822743321418e-16, ('x34','x30'): 2.1547344184001764e-16, ('x34','x31'): -3.8397843585160223e-16, ('x34','x32'): 1.287509049673055e-16, ('x34','x33'): 2.2982174102518306e-16, ('x34','x35'): 2.2982174102518306e-16, ('x35','x0'): -9.745633828775238e-16, ('x35','x1'): 7.978636375464395e-16, ('x35','x2'): -8.7637441086809e-18, ('x35','x3'): 1.7821234682937496e-16, ('x35','x4'): 2.991979347211581e-16, ('x35','x5'): 2.466145517929521e-16, ('x35','x6'): 1.2114907374729513e-15, ('x35','x7'): 7.14016539044816e-16, ('x35','x8'): 5.01579948656809e-16, ('x35','x9'): -3.036067868211681e-16, ('x35','x10'): 1.6179096150643616e-16, ('x35','x11'): 7.922224199863218e-17, ('x35','x12'): -6.551089850864967e-16, ('x35','x13'): 6.48116599160726e-16, ('x35','x14'): -3.732406118922183e-16, ('x35','x15'): 3.194245129790801e-16, ('x35','x16'): -4.926304444604729e-17, ('x35','x17'): 1.8221886920878332e-16, ('x35','x18'): 3.8982915339802936e-16, ('x35','x19'): -1.2856900993110286e-15, ('x35','x20'): 4.597342449758344e-16, ('x35','x21'): 2.6327652721029985e-16, ('x35','x22'): 3.504286899223325e-17, ('x35','x23'): 7.27860964922572e-17, ('x35','x24'): 6.223698308562025e-16, ('x35','x25'): -2.200083236180952e-16, ('x35','x26'): -8.712854504855228e-16, ('x35','x27'): -4.692237884254885e-17, ('x35','x28'): -1.6099652744644918e-16, ('x35','x29'): 1.1499449278826247e-16, ('x35','x30'): 6.73690274641518e-16, ('x35','x31'): 2.1547344184001764e-16, ('x35','x32'): -3.8397843585160223e-16, ('x35','x33'): 1.287509049673055e-16, ('x35','x34'): 2.2982174102518306e-16, }, 'SPIN')    

sampler = dimod.ExactSolver()
sampleset = sampler.sample(bqm)
print(sampleset.lowest())



class FactorizationMachine(QuadraticLayer):
    """Factorization Machine as a neural network layer.

    Args:
        input_size (int):
            The dimension of input value.
        factorization_size (int (<=input_size)):
            The rank of decomposition of interaction terms.
        act (string, optional):
            Name of activation function applied on FM output: "identity", "sigmoid", or "tanh". (default="identity")
        **kwargs:
    """

    def __init__(self, input_size, factorization_size=8, act="identity", **kwargs):
        super().__init__(**kwargs)
        self.factorization_size = factorization_size
        self.input_size = input_size
        self.trainer = None
        with self.name_scope():
            self.h = self.params.get("h", shape=(input_size,), dtype=np.float32)
            if factorization_size > 0:
                self.V = self.params.get("V", shape=(factorization_size, input_size), dtype=np.float32)
            else:
                self.V = self.params.get("V", shape=(1, input_size), dtype=np.float32) # dummy V
            self.bias = self.params.get("bias", shape=(1,), dtype=np.float32)
        self.act = act

    def hybrid_forward(self, F, x, h, V, bias):
        """Forward propagation of FM.

        Args:
          x: input vector of shape (N, d).
          h: linear coefficient of lenth d.
          V: matrix of shape (k, d).
        """
        if self.factorization_size <= 0:
            return bias + F.dot(x, h)
        Q = VtoQ(V, F) # (d,d)
        Qx = F.FullyConnected(x, weight=Q, bias=None, no_bias=True, num_hidden=self.input_size)
        act = {"identity": F.identity, "sigmoid": F.sigmoid, "tanh": F.tanh}[self.act]
        return act(bias + F.dot(x, h) +  F.sum(x*Qx, axis=1))

    def get_bhQ(self):
        """Returns linear and quadratic coefficients.
        """
        V = nd.zeros(self.V.shape) if self.factorization_size is 0 else self.V.data()
        return self.bias.data().asscalar(), self.h.data().asnumpy(), VtoQ(V, nd).asnumpy()

